﻿/// <summary>
/// 功能：
/// 作者：chao.jiang
/// 日期：2012/10/16 15:01:22
/// 备注：
/// 修改：
/// </summary>
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using FluentValidation;
namespace Phoenix.Service.Model.Validators
{
    public class ProductModelValidator : AbstractValidator<ProductModel>
    {
        public ProductModelValidator()
        {
            RuleFor(x => x.Title).NotEmpty().Length(5, 20);
			RuleFor(x => x.SEOKeywords).NotEmpty().Length(1, 20);
			RuleFor(x => x.SEODesc).NotEmpty().Length(1, 20);
            RuleFor(x => x.Summary).NotEmpty();
            RuleFor(x => x.CategoryID).NotEmpty();
            RuleFor(x => x.AreaID).NotEmpty();

        }
    }
}
